﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.Models
{
    public class BaseDao
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
        public long id { get; set; }
        public int status { get; set; } = 1;
        public DateTime create_time { get; set; } = DateTime.Now;
        public long create_user { get; set; }
        public DateTime update_time { get; set; } = DateTime.Now;
        public long update_user { get; set; }
    }
    public class BaseDaoEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public long id { get; set; }
        public int status { get; set; } = 1;
        public DateTime create_time { get; set; } = DateTime.Now;
        public long create_user { get; set; }
        public DateTime update_time { get; set; } = DateTime.Now;
        public long update_user { get; set; }
    }
}
